﻿Public Class frmMain

    Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'DdbAssignmentTrackerDataSet.tblAssignments' table. You can move, or remove it, as needed.
        Me.TblAssignmentsTableAdapter.Fill(Me.DdbAssignmentTrackerDataSet.tblAssignments)
    End Sub

    Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutToolStripMenuItem.Click
        frmAbout.ShowDialog()
    End Sub

    Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
        Me.Close()
    End Sub

    Private Sub btnClosePnlAssignment_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClosePnlAssignment.Click
        pnlAddEditAssignent.Visible = False
    End Sub

    Private Sub BindingNavigatorAddNewItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorAddNewItem.Click
        pnlAddEditAssignent.Visible = True
    End Sub

    Private Sub btnAddAssignment_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddAssignment.Click
        Me.TblAssignmentsBindingSource.EndEdit()
        Me.TblAssignmentsTableAdapter.Update(Me.DdbAssignmentTrackerDataSet.tblAssignments)
        Me.TblAssignmentsBindingSource.AddNew()
    End Sub

    Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Try


        Catch ex As Exception

        End Try
    End Sub
End Class